package com.warm.demo.scheduling;

import org.noear.solon.scheduling.annotation.Scheduled;

/**
 * 基于 Runnable 接口的模式
 *
 * @author warm
 */
@Scheduled(fixedRate = 1000 * 3)
public class Job1 implements Runnable {
    @Override
    public void run() {
        System.out.println("我是 Job1 （3s）");
    }
}